package com.cloudsigns.factorymanager2.produce.fragment.produce_team;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.cloudsigns.factorymanager2.R;
import com.cloudsigns.factorymanager2.produce.activity.produce_team.ProduceTeamWorkAttendanceActivity;

public class ProduceTeamOfficeFragment extends Fragment implements View.OnClickListener{

    private LinearLayout ll_work_attendance;

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_produce_team_office,null);
        ll_work_attendance=view.findViewById(R.id.ll_work_attendance);

        ll_work_attendance.setOnClickListener(this);
        return view;
    }

    @Override
    public void onClick(View view) {
        Intent intent;
        switch (view.getId()){
            case R.id.ll_work_attendance:
                intent=new Intent(getActivity(),ProduceTeamWorkAttendanceActivity.class);
                startActivity(intent);
                break;
        }
    }
}
